package com.wisnews.service.sr.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wisnews.mapper.sr.PostInfoMapper;
import com.wisnews.pojo.sr.entity.PostInfo;
import com.wisnews.pojo.sr.vo.PostVO;
import com.wisnews.service.sr.IPostInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yuyd
 * @since 2021-03-19
 */
@Service
public class PostInfoServiceImpl extends ServiceImpl<PostInfoMapper, PostInfo> implements IPostInfoService {

    @Autowired
    private PostInfoMapper postInfoMapper;

    @Override
    public IPage<PostVO> getPostList(PostVO postVO,IPage page) {
        LambdaQueryWrapper<PostVO> postLambdaQueryWrapper = new LambdaQueryWrapper<>();
        return postInfoMapper.postJoinMemberList(postLambdaQueryWrapper,page);
    }
}
